// mineDetail.js
var app=getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    user:{},
    loading: false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      user: wx.getStorageSync('wechat_user')
    })
    console.log(this.data.user)
  },
  uuidChange:function(){

  },
  login:function(){
    this.setData({ loading: true })
    wx.reLaunch({
      url: '../login/login',
    })
    try {
      wx.removeStorageSync('wechat_service_5mutian_token')
      wx.removeStorageSync('wechat_user')
      app.globalData.userInfo = null
      this.setData({ loading: false })
    } catch (e) { }
    
  },
  password:function(){
    wx.navigateTo({
      url: '../upPassword/upPassword',
    })
  },
})